<html>
 <head>
        <title>[var.TITLE]</title>
        <link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
        <link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
        <script type="text/javascript" src="[var.ROOT_DIR]js/doiMenuDOM.js"></script>
        <script type="text/javascript" src="[var.ROOT_DIR]js/functions.js"></script>
        <script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.php"></script>
        <script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.cfg"></script>
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
        <table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
                <tr>
                        <td>[tbs_include.onshow;file=[var.HTMLHeader];getob;]</td>
                </tr>
                <tr>
                        <td>
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                        <td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
                                </tr>
                                <tr>
                                        <td background="[var.ROOT_IMG_DIR]/back-menu.gif">
                                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                <tr>
                                                        <td>
                                                        <script language="JavaScript" type="text/JavaScript">menu.Build();</script>
                                                          </td>
                                                  <td class="head-login">Login as [var.USERPROFILE_NAME]</td>
                                                </tr>
                                          </table>
                                        </td>
                                </tr>
                                <tr>
                                        <td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
                                </tr>
                        </table>
                        </td>
                </tr>
                <tr height="100%">
                        <td>
                        <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
                                <tr valign="top">
                                        <td width="100%">
                                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                        <tr>
                                                                <td class="head-path"></td>
                                                                <td class="corner-date">[var.CORNER_DATE]</td>
                                                        </tr>
                                                </table>
                                                <table border="0" cellspacing="0" cellpadding="5" width="100%">
                                                        <tr>
                                                                <td class="FacetHeaderContent" align="left">.:[var.SubHeaderTitle]:. </td>
                                                        </tr>
                                                </table>
                                                <table border="0" cellspacing="0" cellpadding="5" width="100%">
                                                        <tr>
                                                                <td class="contentTitle">[tbs_check;block=tr;if [var.USER_CANINSERT]=1]
                                                                Menu
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td class="content2">[tbs_check;block=tr;if [var.USER_CANINSERT]=1]
                                                                <table cellspacing="2" cellpadding="0">
                                                                 <tr>
                                                                   <td>[tbs_check;block=td;if [var.USER_CANAPPROVAL1]=1]
                                                                     <input type="button" name="Action" value="Approval 1" class="button" onClick="if (confirm('Are you sure want to approve all selected records ?')) {[var.HTMLGridList].action='[sys.script_name]?Action=Approval&Type=Approval1&PageNum=[var.PageNum]';[var.HTMLGridList].submit();}">
                                                                   </td>
                                                                   <td>[tbs_check;block=td;if [var.USER_CANAPPROVAL2]=1]
                                                                     <input type="button" name="Action" value="Approval 2" class="button" onClick="if (confirm('Are you sure want to approve all selected records ?')) {[var.HTMLGridList].action='[sys.script_name]?Action=Approval&Type=Approval2&PageNum=[var.PageNum]';[var.HTMLGridList].submit();}">
                                                                   </td>
                                                                   <td>[tbs_check;block=td;if [var.USER_CANAPPROVAL3]=1]
                                                                     <input type="button" name="Action" value="Approval 3" class="button" onClick="if (confirm('Are you sure want to approve all selected records ?')) {[var.HTMLGridList].action='[sys.script_name]?Action=Approval&Type=Approval3&PageNum=[var.PageNum]';[var.HTMLGridList].submit();}">
                                                                   </td>
                                                                   <td>[tbs_check;block=td;if [var.USER_CANDELETE]=1]
                                                                     <input type="button" name="Action" value="Delete" class="button" onClick="if (confirm('Are you sure want to delete ?')) {[var.HTMLGridList].action='[sys.script_name]?Action=Delete&PageNum=[var.PageNum]';[var.HTMLGridList].submit();}">
                                                                   </td>
                                                                   <td>
                                                                   </td>
                                                                 </tr>
                                                                </table>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td class="content2">
                                                                        <table border="0" cellspacing="0" cellpadding="0">


                                                                        <form  name="[var.HTMLFormName]">
                                                                                <tr>
                                                                                        <td class="fieldCaption" align="right">Trans. No.</td>
                                                                                        <td class="fieldCaption">:</td>
                                                                                        <td>
                                                                                        <input type="text" name="transNoSearch" value="[var.FCode]" maxlength="255" size="15" class="input" onKeyUp="this.value=this.value.toUpperCase()">
                                                                                        </td>
                                                                                </tr>
                                                                                <tr>
                                                                                        <td class="fieldCaption" align="right">Ref. No.</td>
                                                                                        <td class="fieldCaption">:</td>
                                                                                        <td>
                                                                                        <input type="text" name="transNoRef" value="[var.RCode]" maxlength="255" size="15" class="input" onKeyUp="this.value=this.value.toUpperCase()">
                                                                                        </td>
                                                                                </tr>

                                                                                <tr>
                                                                                        <td class="fieldCaption" align="right">Trans.Date</td>
                                                                                        <td class="fieldCaption">:</td>
                                                                                        <td>
                                                                                        <input type="text" name="tglbkt" value="[var.Ftglbkt]" maxlength="255" size="15" class="input" onchange="CheckPeriod()">
                                                                                        <a href="javascript:void(0)" onclick="gfPop.fPopCalendar(document.[var.HTMLFormName].tglbkt);return false;" hidefocus>
                                                                                        <img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                                                                                        </td>
                                                                                </tr>
                                                                                <tr>
                                                                                        <td class="menuHeader"></td>
                                                                                        <td class="menuHeader"></td>
                                                                                        <td align="right">
                                                                                        <input type="submit" name="Action" value="Search" class="button" >
                                                                                        </td>
                                                                                </tr>
                                                                        </form>
                                                                        </table>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td >&nbsp;</td>
                                                        </tr>
                                                </table>
                                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                    <tr>
                                                      <td>
                                                 <!-- GRID SECTION -->
                                                                        <table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="left">
                                                                        <form method=post name="[var.HTMLGridList]" >
                                                                          <tr>
                                                                                  <td nowrap class="FacetColumnTD" align="center" ></td>
                                                                            <td nowrap class="FacetColumnTD" align="center" >No.</td>
                                                                            <td nowrap class="FacetColumnTD" align="center" >Trans No.</td>
                                                                            <td nowrap class="FacetColumnTD" align="center">Date</td>
                                                                            <td nowrap class="FacetColumnTD" align="center">Debtur</td>
                                                                            <td nowrap class="FacetColumnTD" align="center" >Description</td>
                                                                            <td nowrap class="FacetColumnTD" align="center" >Amount</td>
                                                                            <td nowrap class="FacetColumnTD" align="center">Approved By</td>
                                                                          </tr>

                                                                          <tr>
                                                                            <td nowrap class="FacetDataTD" align="right" width="10">
                                                                                  <input name="txtCheck[blg.#]" type="checkbox" class="inputRadio" value="[blg.nobkt]" checked>
                                                                            </td>
                                                                            <td nowrap class="FacetDataTD" align="right" width="15">[blg.#]</td>
                                                                            <td class="FacetDataTD" align="left"><a href="[sys.script_name]?[bln.PRIMARY_KEY]=[blg.nobkt]&ttype=[tbs_check;if [blg.kdcash]!='';then 'Cash' ;else 'Bank']&PageMode=Form">[blg.nobkt]</a></td>
                                                                            <td class="FacetDataTD" align="center">[blg.tglbkt]</td>
                                                                            <td class="FacetDataTD" align="center">[blg.debnam;block=tr]</td>
                                                                            <td class="FacetDataTD" align="center">[blg.uraian;block=tr]</td>
                                                                            <td class="FacetDataTD" align="center">[blg.curr] [blg.jumlah;frm='0,000.00']</td>

                                                                            <td class="FacetDataTD" align="left">[tbs_check;if [blg.app1]=1;then [blg.nmapp1;max=20];else '-']</td>
                                                                          </tr>
                                                                          <tr>
                                                                            <td colspan="9" class="FacetDataTD">[blg;block=tr;nodata]No records</td>
                                                                          </tr>
                                                                          <tr>
                                                                            <td colspan="9" nowrap class="FacetColumnTD">[tbs_check.1;block=tr;if [var.RecCnt]!=0]
                                                                                <table border="0" align="left" cellpadding="0" cellspacing="0" >
                                                                                  <tr align="center">[tbs_check.1;block=table;if [var.RecCnt]!=0]
										    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.first;endpoint;friend2=a]&[var.PreserveGet]">|&lt;</a></td>
										    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.prev;endpoint;friend2=a]&[var.PreserveGet]">&lt;</a></td>
										    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.page;block=td]&[var.PreserveGet]">[nv.page]</a></td>
										    <td width="16" bgcolor="#B7B3B7"><strong>[nv.page;block=td;currpage]</strong></td>
										    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.next;endpoint;friend2=a]&[var.PreserveGet]">&gt;</a></td>
										    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.last;endpoint;friend2=a]&[var.PreserveGet]">&gt;|</a></td>                                                                                  </tr>

                                                                                </table>

                                                                            </td>
                                                                          </tr>
                                                                          </form>
                                                                        </table>
                                                <!-- GRID SECTION -->

                                                       </td>
                                                         </tr>
                                                         <tr>
                                                           <td>&nbsp;


                                                           </td>
                                                         </tr>
                                                        </table>
                                        </td>
                                </tr>
                        </table>

                        </td>
                </tr>
                <tr>
                        <td>
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                        <td class="footer1"><img src="images/spacer.gif" height="1" width="1"></td>
                                </tr>
                                <!--tr>
                                        <td class="footer2">Prototype Test - Web Application</td>
                                </tr-->
                        </table>
                        </td>
                </tr>
         </table>
        <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="[var.ROOT_DIR]js/Calendar/pop/ipopeng.htm" scrolling="no" frameborder="0" style="LEFT: -500px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; Z-INDEX: 999"></iframe>
 </body>
<script>
 function CheckPeriod () {
         ledger = document.[var.HTMLFormName].tglbkt.value;
         if (ledger.length) LoadRPC ("iLoader", "[var.FileName]", "ledger="+ledger+"&trsto=tglbkt");
         return true;
 }
 </script>

</html>